package com.sojoys.artifact.manager;

import java.util.Map;

import redis.clients.jedis.JedisPool;

/**
 * @author : DengYing
 * @CreateDate : 2017年4月6日 下午6:31:34
 * @Description ：redis数据管理器
 */
public class JedisManager {
	private JedisManager() {
	}

	private static JedisManager ME = new JedisManager();

	public static JedisManager me() {
		return ME;
	}

	JedisPool buildDataModelJedisPool;
	Map<String, JedisPool> jedisPools;

	public JedisPool getBuildDataModelJedisPool() {
		return buildDataModelJedisPool;
	}

	public void setBuildDataModelJedisPool(JedisPool buildDataModelJedisPool) {
		this.buildDataModelJedisPool = buildDataModelJedisPool;
	}

	public Map<String, JedisPool> getJedisPools() {
		return jedisPools;
	}

	public void setJedisPools(Map<String, JedisPool> jedisPools) {
		this.jedisPools = jedisPools;
	}

	public JedisPool getJedisPool(String name) {
		return jedisPools.get(name);
	}
}
